package Java.view.game.dian21;

import java.awt.*;

/**
 * 单张卡牌类
 */
public class Card {
    public final String name;
    public final int value;
    public final Image cardImage;

    public Card(String name, int value, Image cardImage) {
        this.name = name;
        // J、Q、K为10点
        this.value = Math.min(value, 10);
        this.cardImage = cardImage;
    }
}